package com.school.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.school.dao.HljtSchoolNotifyDao;
import com.school.entity.HljtSchoolnotify;
import com.school.service.HljtSchoolNotifyService;
@Service
public class HljtSchoolNotifyServiceImpl implements HljtSchoolNotifyService{

	@Autowired
	private HljtSchoolNotifyDao hljtSchoolNotifyDao;
	
	@Override
	public List<HljtSchoolnotify> findSchoolnotify(String type) {
			
			return hljtSchoolNotifyDao.findSchoolnotify(type);
	}

	@Override
	public List<HljtSchoolnotify> findSchoolnotifypage(String title, Integer pageSize, Integer pageIndex, String type) {
		return hljtSchoolNotifyDao.findSchoolnotifypage(title, pageSize, pageIndex, type);
	}

	@Override
	public Integer deleteSchoolnotify(Integer id) {
		return hljtSchoolNotifyDao.deleteSchoolnotify(id);
	}

	@Override
	public Integer addSchoolnotify(HljtSchoolnotify hljtschoolnotify) {
		// TODO Auto-generated method stub
		return hljtSchoolNotifyDao.addSchoolnotify(hljtschoolnotify);
	}

	@Override
	public Integer updateSchoolnotify(HljtSchoolnotify hljtschoolnotify) {
		// TODO Auto-generated method stub
		return hljtSchoolNotifyDao.updateSchoolnotify(hljtschoolnotify);
	}

}
